<div class="toplogo">
  <div class="logo">
    <!--获取底部导航第一个项目链接作为首页的链接-->
    <ytata:wxtabbar listname="items"/>
    <a href="{:U($items['nav'][0]['act'].'/'.$items['nav'][0]['fun'])}">
      <empty name="Think.config.YTATA_WEIXIN_LOGO">
        <img src="__ROOT__/{:C('YTATA_IMG_DIR')}logo.gif">
        <else/>
        <img src="__ROOT__/{:C('YTATA_WEIXIN_LOGO')}">
      </empty>
    </a>
  </div>
  <div class="topmenu J_show_sliding_nav"></div>
  <div class="topso J_show_so"></div>
</div>
<include file="public:so" />

<script>
/*打开左侧菜单*/
$(".J_show_sliding_nav").off().on('click',function(e){	
	lock_touchmove();						 
	var htm='<div class="sliding_nav_bg"></div><div class="sliding_nav J_sliding_nav"></div>';
	$('body').append(htm);
	$('.sliding_nav_bg').addClass('in');
    $('.J_sliding_nav').addClass('slideInRight animated');
	
	var ajax_sliding_url='{:U("Ajax/ajax_sliding_nav")}';
	$.getJSON(ajax_sliding_url, function (result) {
        if (result.code == 1) {
		$('.J_sliding_nav').append(result.data)
        } else  {
          toast(result.data);
        }
    });
	//ssetTimeout(function(){$('.J_sliding_nav').addClass('uu-actionsheet-toggle');}, 50);
	
	//关闭
	$(".sliding_nav_bg").off().on('click',function(e){
		$('.J_sliding_nav').addClass('slideOutRight animated');
		un_lock_touchmove();
		$('.sliding_nav_bg').removeClass('in').addClass('out');
		setTimeout(function(){$(".sliding_nav_bg,.J_sliding_nav").remove();}, 200);
	});

});

</script>